home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 03 / 1 / DISK0313.ZIP / USE-TIME.DOC < prev    next >
Text File  |  1984-05-30  |  3KB  |  65 lines

  1.  
  2.        PRGTIM.EXE/(BAS)  //   TMSTRT.EXE/(BAS)   //    RPTUSE.BAS
  3.  
  4.     The first two programs are UTILITIES, to be included in a BATCH file. 
  5. They calculate the amount of time spent by someone using the computer, and
  6. they permit apportionment of the time between BUSINESS and NON-BUSINESS use.
  7.  
  8.     The .EXE format permits faster access by the BATCH file, then the .BAS
  9. programs, and does NOT require one to load BASIC.  I therefore recommend this
  10. method, and I have only included the BASIC programs so one can study and
  11. modify the source listings.
  12.  
  13.     "RPTUSE.BAS" provides a PRINT-OUT of data saved by PRGTIM in "PRGTIM.DTA." 
  14. It can be modified to sort the data, or data can first be sorted using
  15. a data-base program, such as PC-FILE.
  16.  
  17.     The programs are used as follows:
  18.  
  19.          1. The program, `TMSTRT' is first invoked by the BATCH file. This 
  20. records the starting time in a file, "TMSTRT.DTA"
  21.  
  22.          2. You then run whatever application programs you wish.   When you 
  23. exit from the application program, the BATCH file then invokes `PRGTIM.'
  24.  
  25.          3. `PRGTIM' asks the user for his name (or initials), for the name 
  26. of the application program just used, and permits up to twenty-four characters 
  27. of comments (which can be skipped).
  28.           
  29.          4. `PRGTIM' then calculates the elapsed time, and asks the user to
  30. indicate how much of that use time was for non-business purposes.  Hitting
  31. <enter> twice will mark ALL of the use for BUSINESS.
  32.  
  33.          5. The program then writes, to the file "PRGTIM.DTA", the date, the 
  34. user's name, the name of the application program, the starting time, and the 
  35. number of hours & minutes of business and of non-business use.  This file is
  36. constantly appended, providing  a continuous record of use.  
  37.  
  38.          6. The data in the file "PRGTIM.DTA" can easily be printed out as a
  39. report, using a simple BASIC program. (Please see the program, "RPTUSE.BAS"
  40. which can do this.)
  41.  
  42.     In writing the batch (.BAT) file, it is important for `PRGTIM' to be able
  43. to find "TMSTRT.DTA". In a two drive system, making B: the default, and
  44. putting PRGTIM and TMSTRT in B: accomplishes this end.
  45.  
  46.     Assuming a two drive system, with floppy diskettes, the AUTOEXEC.BAT or
  47. (PRG.BAT) would look  something like this:
  48.  
  49. PAUSE    Be sure that disk with PRGTIM and TMSTRT is in DRIVE B:
  50. B:    
  51. TMSTRT
  52. ....           '  (application program goes here, such as ` WS ')
  53. PAUSE    Be sure that disk with PRGTIM and TMSTRT.DTA is in DRIVE B:
  54. B:             '  B: is the default drive now so the data files can be found.
  55. PRGTIM
  56. A:
  57.  
  58.     If one were to use the BASIC form of the programs, then one would need to
  59. have BASIC.COM available on the disk, and the BATCH file  would need to
  60. contain the command, `BASIC' preceding `TMSTRT' and also preceding `PRGTIM'.
  61.  
  62.     To print out a report, just load BASIC, and  RUN "RPTUSE" .
  63.  
  64.                                  Steve Kent
  65.                                 Marin PC-User's Group